package org.JQbitorrentClinet.request.torrentmanagement;

import lombok.Builder;
import org.JQbitorrentClinet.base.BaseGetUrlEncodedParam;
import org.JQbitorrentClinet.pojo.torrent.TorrentGenericProperties;

@Builder
public class GetTorrentGenericPropertiesParam extends BaseGetUrlEncodedParam {
    String hash;

    public GetTorrentGenericPropertiesParam(String hash) {
        super();
        this.hash = hash;
        responseType = TorrentGenericProperties.class;
    }

    @Override
    public String getApiUrl() {
        return "/api/v2/torrents/properties";
    }
}
